<?php
if($type == 1)
{
    $this->breadcrumbs=array(
        '友情链接'=>array('display/relatedlink'),
        '校内链接',
    );
}
elseif($type == 2)
{
    $this->breadcrumbs=array(
        '友情链接'=>array('display/relatedlink'),
        '校外链接',
    );
}
else
{
    $this->breadcrumbs=array(
        '友情链接',
    );
}
?>
<?php
$this->menuitemName = '友情链接';
$this->menuList = array();
$this->menuList[] = array('label'=>'校内链接', 
    'url'=>'display/relatedlink?type=校内链接'
);
$this->menuList[] = array('label'=>'校外链接', 
    'url'=>'display/relatedlink?type=校外链接'
);

?>

<div class="panel panel-box" style="overflow:hidden;">
    <div class="panel-heading">
        <h3 class="panel-title">
    <?php
        if($type == 1)
        {
            echo "校内链接";
        }
        elseif($type == 2)
        {
            echo "校外链接";
        }
        else
        {
            echo "友情链接";
        }
?>
        </h3>
    </div>
    <div class="panel-body" style="padding:30px 50px 50px 50px">
    <?php if($type == 1):?>
        <h4>校内链接</h4>
        <?php for($i = 0;$i < count($model);$i++):?>
            <li><a target="blank" href="<?php echo 'http://'.$model[$i]->url?>"><?php echo $model[$i]->title?></a></li>
        <?php endfor;?>
    <?php endif;?>

    <?php if($type == 2):?>
        <h4>校外链接</h4>
        <?php for($i = 0;$i < count($model);$i++):?>
            <li><a target="blank" href="<?php echo 'http://'.$model[$i]->url?>"><?php echo $model[$i]->title?></a></li>
        <?php endfor;?>
    <?php endif;?>

    <?php if($type == 3):?>
    <div style="width:49.99%;float:left">
        <h4>校内链接</h4>
        <?php for($i = 0;$i < count($lModelIN);$i++):?>
            <li><a target="blank" href="<?php echo 'http://'.$lModelIN[$i]->url?>"><?php echo $lModelIN[$i]->title?></a></li>
        <?php endfor;?>
    </div>
    <div style="width:49.99%;float:right">
        <h4>校外链接</h4>
        <?php for($i = 0;$i < count($lModelOUT);$i++):?>
            <li><a target="blank" href="<?php echo 'http://'.$lModelOUT[$i]->url?>"><?php echo $lModelOUT[$i]->title?></a></li>
        <?php endfor;?>

    </div>

    <?php endif;?>
    </div>
</div>

